<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Report Errors</title>
</head>
<body>
<h2>Testing Error Reporting</h2>
<?php # Script 7.2 - report_errors.php

// Show errors:
ini_set('display_errors', 1);

// Adjust error reporting:
error_reporting(E_ALL);

// Create errors:
foreach ($var as $v){}
$result = 1/0;

?>
</body>
</html>